package com.smartinput.device.application.dto

import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.Pattern

data class DeviceRegisterRequest(
    @field:NotBlank(message = "设备ID不能为空")
    val deviceId: String,
    
    @field:NotBlank(message = "设备名称不能为空")
    val deviceName: String,
    
    @field:NotBlank(message = "设备类型不能为空")
    val deviceType: String,
    
    val userId: String?
)

data class DeviceRegisterResponse(
    val deviceId: String,
    val deviceName: String
)

data class DeviceInfo(
    val deviceId: String,
    val deviceName: String,
    val deviceType: String,
    val online: Boolean,
    val lastHeartbeat: String?
)

data class DeviceStatusUpdateRequest(
    val online: Boolean,
    val socketId: String?
) 